/*
 * Created on Dec 2, 2009
 */
package com.mgmaps.utils;

public abstract class IPlaySound extends Thread {
  /**
   * Set the observer that gets notified about sound playing ended.
   * @param pso play sound observer
   */
  public abstract void setObserver(IPlaySoundObserver pso);
  
  /**
   * Play a sound.
   * @param filename sound file name to play
   */
  public abstract void startPlay(String filename);
  
  /**
   * Stop the player.
   */
  public abstract void stopPlay();
  
  /**
   * Notify that we want to exit.
   */
  public abstract void notifyExit();
}
